package ua.maxicash.service;


import org.springframework.security.core.userdetails.User;
import ua.maxicash.exceptions.NoSuchEmailInSystemException;
import ua.maxicash.vo.SystemUser;

public interface ConfirmationService {
    public void recoverPassword(String email) throws NoSuchEmailInSystemException;
    public boolean isInRecoveryMap(String email, Long idRecovery);
    public boolean isInLoginMap(String email, Long idLogin);
    public String changePassword(String oldPass, String newPass, String confirmPass, User user);
    public void changePassword(String newPass, SystemUser su);
    public void enableUser(String email);
    public void addToLoginMap(String email);

}
